package api

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
	"net/http"
)

func Login(c *gin.Context) {
	newJwt := jwt.NewJWT("Token")
	claims := jwt.CustomClaims{
		ID: 1,
	}

	token, _ := newJwt.CreateToken(claims)

	c.JSON(http.StatusOK, gin.H{
		"token": token,
	})
}
